<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看文件</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <jsp:include page="_Chair.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-8" >
            <!-- <h4>查看公告</h4> -->
            <ul class="list-inline">
                <li>文件管理</li>
                <li>/</li>
                <li>查看文件</li>
            </ul>
            <table class="table ">
                <thead>
                <tr>
                    <th class="col-md-3">
                        <h size="4px">文件名称</h>
                    </th>
                    <th class="col-md-3">
                        <h size="4px">下载路径</h>
                    </th>
                    <th class="col-md-8">
                        <h size="4px">上传时间</h>
                    </th>
        </div>
        </tr>
        </thead>

        <tbody>
        <c:forEach items="${FileList }" var="File">
            <c:url value="/chair/fileDownload" var="downUrl">
                <c:param name="fileName" value="${File.fileNa }"></c:param>
                <c:param name="filePath" value="${File.filePath }"></c:param>
            </c:url>
            <tr>
                <td class="col-md-3" >${File.fileNa}</td>
                <td class="col-md-3">
                        <a href="${downUrl}">下载 </a>
                </td>
                <td class="col-md-8">${File.formatTime }</td>
<%--                <td class="col-md-1">--%>
<%--                    <a class="btn btn-danger btn-xs" href="<c:url value="/chair/deleteAnnouncement?id=${File.id}"/>"><i class="fa fa-trash-o"></i>删除</a>--%>
<%--                </td>--%>
            </tr>
        </c:forEach>
        </tbody>
        </table>

    </div>
</div>

</div>
</body>
</html>